package com.qb.baselibrary.basekotlin.common

import com.qb.baselibrary.basekotlin.IBaseResponse

data class BaseResult<T>(
        val msg: String,
        val code: Int,
        val data: T //? 这里跟IBaseResponse里边一样不改造了。改造后现在的页面都得动一动
) : IBaseResponse<T> {

    override fun code() = code

    override fun msg() = msg

    override fun data() = data

    override fun isSuccess() = code == 0

}